package com.scorpio.pay.enums;

public enum PayTypeEnum {
    WeChatPay("WeChatPay", "微信支付");

    private String value;

    private String info;

    PayTypeEnum(String value, String info) {
        this.value = value;
        this.info = info;
    }

    public static PayTypeEnum get(String value) {
        for (PayTypeEnum statusEnum : PayTypeEnum.values()) {
            if (statusEnum.getValue().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }

    public String getValue() {
        return value;
    }

    public String getInfo() {
        return info;
    }

}
